# -*- coding: utf-8 -*-
#  @author  Bink
#  @date  2020/8/29 17:05
# @Email : 2641032316@qq.com

# TODO 分别用数组学生的学号和姓名
#      请至少用两种不同的方式，输出每个学生的学号和姓名


def show(sl):
    for stu in sl:
        print('学号：' + str(stu[0]), '姓名：' + stu[1])


stuList = [(1, 'stuA'), (2, 'stuB'), (3, 'stuC'), (4, 'stuD'), (5, 'stuE'), (6, 'stuF')]
show(stuList)

print('*' * 99)

stuDict = {1: 'stuA', 2: 'stuB', 3: 'stuC', 4: 'stuD', 5: 'stuE', 6: 'stuF'}
show(stuDict.items())

print('*' * 99)

stuStr = "1:stuA,2:stuB,3:stuC,4:stuD,5:stuE,6:stuF"
show(list(map(lambda x: (x.split(':')[0], x.split(':')[1]), stuStr.split(','))))
